package com.example.myapplication.activity;

import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.example.myapplication.R;
import com.example.myapplication.bean.MoneyData;

public class ShYuActivity extends AppCompatActivity {

    private TextView moneyText;
    private TextView moneyCardText;
    private TextView timeText;

    private TextView startTimeText;
    private TextView endTimeText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shyu_mi10);

        moneyText = findViewById(R.id.sh_yu_money);
        moneyCardText = findViewById(R.id.sh_yu_money_card);

        timeText = findViewById(R.id.sh_yu_time);
        startTimeText = findViewById(R.id.sh_yu_start_day);
        endTimeText = findViewById(R.id.sh_yu_end_day);

        MoneyData moneyData = (MoneyData)getIntent().getSerializableExtra("moneyData");
        moneyText.setText(moneyData.getMoney());
        moneyCardText.setText(moneyData.getMoney());
        timeText.setText(moneyData.getStartTime()+"  ");
        startTimeText.setText(moneyData.getDayTime());
        endTimeText.setText(moneyData.getDayTime());


    }

}
